	
		
     		
    		<?php 
    		include '../Model/Connection.php';
    		if(isset($_GET['last_msg_id'])){
    			$last_msg_id=$_GET['last_msg_id'];
    			$sql=mysql_query("SELECT * FROM ung_dung WHERE STT < '$last_msg_id' ORDER BY id DESC LIMIT 10");
    			$last_msg_id="";
    			
    			
    			while($row = mysql_fetch_array($sql)){
    					
    		?>
    
			    
			    		<!--  START DIV APP-->
						<div class="app" id="<?php echo $row['STT']; ?>">
								<a class="iframe" href="Detail.php?ID=<?php echo $row['ID']; ?>" title="<?php echo $row['TEN_UNG_DUNG']; ?>" >
									<img src="../support/getavatar.php?ID=<?php echo $row['STT']; ?>" alt="angri birds" />
								</a>
							
								<div class="info">
							
									<div class="title"><?php echo $row['TEN_UNG_DUNG']; ?></div>
									
									<div class="subtitle">4444 Lượt tải về</div>
									<div class="install"> <a href="#"><img src="../Resource/images/download.png"/></a></div>
								</div><!--  end .info -->
						</div> <!--  end .app -->
					
						<!--  END DIV APP-->
				
		<?php 
    			 }
    		}
		?>
	
	